<div class="febs-container" id="modelOars-edit">
    <div class="febs-open-body  febs-open-body layui-fluid" lay-title="桨模详情">
        <form class="layui-form" action="" lay-filter="modelOars-edit-form">
            <input type="hidden" name="id" >
            <fieldset class="layui-elem-field">
                <legend id="oars_inf">桨模信息</legend>
                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs6">
                            <label class="layui-form-label febs-form-item-require">所属项目：</label>
                            <div class="layui-input-block">
                                <!--<input type="text" name="projectCode" autocomplete="off" class="layui-input" maxlength="255" >-->
                                <select name="projectCode" id="projectCode" lay-verify="required" >
                                    <option th:each="item:${projList }"
                                            th:value="${item.projectCode}" th:text="${item.projectName}"
                                            th:selected="${modelOars.projectCode ==item.projectCode}">
                                </select>
                            </div>
                        </div>
                        <div class="layui-col-xs6">
                            <label class="layui-form-label febs-form-item-require">桨模编号：</label>
                            <div class="layui-input-block">
                                <input type="text" name="oarsCode" autocomplete="off" class="layui-input"
                                       maxlength="255" lay-verify="required">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs6">
                            <label class="layui-form-label febs-form-item-require">桨模名称：</label>
                            <div class="layui-input-block">
                                <input type="text" name="oarsName" autocomplete="off" class="layui-input" lay-verify="required" maxlength="64" >
                            </div>
                        </div>
                        <div class="layui-col-xs6">
                            <label class="layui-form-label febs-form-item-require">建模文件：</label>
                            <div class="layui-input-block">
                                <select name="makeModelFile" id="makeModelFileSelect" lay-verify="required">
                                    <option value="">请选择</option>
                                </select>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs6">
                            <label class="layui-form-label febs-form-item-require">桨模来源：</label>
                            <div class="layui-input-block">
                                <select name="source" id="sourceSelect" lay-filter="sourceSelect" lay-verify="required">
                                    <option value="">请选择</option>
                                </select>
                            </div>
                        </div>
                        <div class="layui-col-xs6  febs-hide" id="origOarsCodeDiv">
                            <label class="layui-form-label ">原桨模编号：</label>
                            <div class="layui-input-block">
                                <input type="text" name="origOarsCode" id="origOarsCode" autocomplete="off" class="layui-input" >
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs6">
                            <label class="layui-form-label febs-form-item-require">最新敞水日期：</label>
                            <div class="layui-input-block">
                                <input type="text" name="waterDate" id="waterDate" autocomplete="off" class="layui-input" lay-verify="required" >
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs6">
                            <label class="layui-form-label febs-form-item-require">桨模位置：</label>
                            <div class="layui-input-block">
                                <select name="position" id="positionSelect" lay-verify="required">
                                    <option value="">请选择</option>
                                </select>
                            </div>
                        </div>
                        <div class="layui-col-xs6">
                            <label class="layui-form-label febs-form-item-require">处理意见：</label>
                            <div class="layui-input-block">
                                <select name="opinion" id="opinionSelect" lay-verify="required">
                                    <option value="">请选择</option>
                                </select>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs6">
                            <label class="layui-form-label febs-form-item-require">直径：</label>
                            <div class="layui-input-block">
                                <input type="text" name="diameter" autocomplete="off" class="layui-input input-inline" lay-verify="required" >mm
                            </div>
                        </div>
                        <div class="layui-col-xs6">
                            <label class="layui-form-label febs-form-item-require">螺距比：</label>
                            <div class="layui-input-block">
                                <input type="text" name="pitch" autocomplete="off" class="layui-input" lay-verify="required">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs6">
                            <label class="layui-form-label febs-form-item-require">盘面比：</label>
                            <div class="layui-input-block">
                                <input type="text" name="surfaceRate" autocomplete="off" class="layui-input"
                                       lay-verify="required">
                            </div>
                        </div>
                        <div class="layui-col-xs6">
                            <label class="layui-form-label febs-form-item-require">弦长：</label>
                            <div class="layui-input-block">
                                <input type="text" name="chordLength" autocomplete="off" class="layui-input  input-inline"
                                       lay-verify="required">mm
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs6">
                            <label class="layui-form-label febs-form-item-require">叶厚：</label>
                            <div class="layui-input-block">
                                <input type="text" name="fanThick" autocomplete="off" class="layui-input input-inline"
                                       lay-verify="required">mm
                            </div>
                        </div>
                        <div class="layui-col-xs6">
                            <label class="layui-form-label febs-form-item-require">轴孔直径：</label>
                            <div class="layui-input-block">
                                <input type="text" name="holeDiameter" autocomplete="off" class="layui-input input-inline"
                                       lay-verify="required">mm
                            </div>
                        </div>
                    </div>
                </div>
            </fieldset>
            <fieldset class="layui-elem-field">
                <legend id="shell_inf">桨殻尺寸</legend>
                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs6">
                            <label class="layui-form-label febs-form-item-require">殻长：</label>
                            <div class="layui-input-block">
                                <input type="text" name="shellLength" autocomplete="off" class="layui-input input-inline"
                                       lay-verify="required" >mm
                            </div>
                        </div>
                        <div class="layui-col-xs6">
                            <label class="layui-form-label febs-form-item-require">前端直径：</label>
                            <div class="layui-input-block">
                                <input type="text" name="frontDiameter" autocomplete="off" class="layui-input input-inline"
                                       lay-verify="required">mm
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs6">
                            <label class="layui-form-label febs-form-item-require">后端直径：</label>
                            <div class="layui-input-block">
                                <input type="text" name="backendDiameter" autocomplete="off" class="layui-input input-inline" lay-verify="required">mm
                            </div>
                        </div>
                    </div>
                </div>

            </fieldset>
            <fieldset class="layui-elem-field">
                <legend id="propeller_inf">螺旋桨参数</legend>

                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs6">
                            <label class="layui-form-label febs-form-item-require">参数1：</label>
                            <div class="layui-input-block">
                                <input type="radio" name="oarsType" value="1" title="单浆" checked >
                                <input type="radio" name="oarsType" value="2" title="双桨"  >
                                <input type="radio" name="oarsType" value="3" title="多桨"  >
                            </div>
                        </div>
                        <div class="layui-col-xs6">
                            <label class="layui-form-label febs-form-item-require">参数2：</label>
                            <div class="layui-input-block">
                                <input type="radio" name="prupose" value="1" title="新桨" checked>
                                <input type="radio" name="prupose" value="2" title="备用桨" >
                            </div>
                        </div>
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs6">
                            <label class="layui-form-label febs-form-item-require">螺旋桨直径：</label>
                            <div class="layui-input-block">
                                <input type="text" name="oarsDiameter" autocomplete="off" class="layui-input input-inline"
                                       lay-verify="required">mm
                            </div>
                        </div>
                        <div class="layui-col-xs6">
                            <label class="layui-form-label febs-form-item-require">叶数：</label>
                            <div class="layui-input-block">
                                <input type="text" name="fanNumber" autocomplete="off" class="layui-input"
                                       lay-verify="required">
                            </div>
                        </div>
                    </div>
                </div>
            </fieldset>
            <div class="layui-form-item">
                <div class="layui-row">
                    <div class="layui-col-xs6">
                        <label class="layui-form-label febs-form-item-require">要求完成时间：</label>
                        <div class="layui-input-block">
                            <input type="text" name="demandEnddate" id="demandEnddate" autocomplete="off" class="layui-input" lay-verify="required">
                        </div>
                    </div>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">备注：</label>
                <div class="layui-input-block">
                    <input type="text" name="memo" autocomplete="off" class="layui-input"
                           maxlength="300" >
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-row">
                    <div id="fileUpload" style="height: 120px ;width: 98%"></div>
                </div>
            </div>
            <div class="layui-form-item" align="center">
                <button class="layui-btn" lay-submit="" lay-filter="modelOars-edit-form-submit" id="submit">提交</button>
                <button type="reset" class="layui-btn" id="reset">返回</button>
            </div>
        </form>
    </div>
</div>
<script data-th-inline="javascript">
    var modelOarsData = [[${modelOars}]];
    var jmNo = [[${jmNo}]];
    var attachs = [[${attachs}]];


</script>
<script th:src="@{/febs/js/sypq/modelOars/modelOarsEdit.js(v=1)}"></script>
<style>
    .input-inline {
        display: inline !important;
        width: 80% !important;
    }

    #modelOars-edit .layui-form-label {
        width: 140px;
    }
    #modelOars-edit .layui-input-block {
        margin-left: 170px;
    }

    .febs-tabs-item {
        height:auto;
    }
</style>